home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Progresivas Profesijas
/
Progresivas prof.iso
/
mac
/
MacOsX
/
files
/
Screensaver.swf
/
scripts
/
frame_158
/
DoAction.as
Wrap
Text File
|
2007-03-06
|
776b
|
37 lines
function endm()
{
clearInterval(IntervalId);
talak = true;
}
function Kustini(KustObj)
{
var _loc1_ = KustObj;
_loc1_._x += stepx;
_loc1_._y += stepy;
if(_loc1_._x + _loc1_._width > ScreenSize_x)
{
stepx = -2;
}
if(_loc1_._y + _loc1_._height > ScreenSize_y)
{
stepy = -2;
}
if(_loc1_._x < 0)
{
stepx = 2;
}
if(_loc1_._y < 0)
{
stepy = 2;
}
}
ScreenSize_x = 1024;
ScreenSize_y = 768;
stepx = 2;
stepy = 2;
LaiksSpelet = 20000;
KustProfesija._x = Math.floor(Math.random() * (ScreenSize_x - KustProfesija._width));
KustProfesija._y = Math.floor(Math.random() * (ScreenSize_y - KustProfesija._height));
talak = false;
IntervalId = setInterval(this,"endm",LaiksSpelet);